package ingsw2.structure;

public class OrganizationalUnitProgram {

	public static void main(String[] args) {
		// Initialize four Person
		Person p1 = new Person("First1", "Last1", "role1");
		Person p2 = new Person("First2", "Last2", "role1");
		Person p3 = new Person("First3", "Last3", "role2");
		Person p4 = new Person("First4", "Last4", "role3");
		
		// Initialize two CompositeOrganiztionalUnit
		CompositeOrganizationalUnit cou = new CompositeOrganizationalUnit("Organizational Unit Zero");
		CompositeOrganizationalUnit cou1 = new CompositeOrganizationalUnit("Organizational Unit One");
		CompositeOrganizationalUnit cou2 = new CompositeOrganizationalUnit("Organizational Unit Two");
		
		// Compose the OrganizationalUnit
		cou1.add(p1);
		cou1.add(p2);
		cou1.add(p3);
		
		cou2.add(p4);

		cou.add(cou1);
		cou.add(cou2);
		
		// Print the whole hierarchical tree.
		cou.print();
	}
	
}
